<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body {
            color: blue;
            font-size: 48px;
        }

        p {
            font-size: 52px !important;
            color: aqua !important;
        }

        video {
            width: 400px;
            height: 500px;
        }
    </style>
</head>

<body>
    <video src="" muted loop controls autoplay></video>
    <script>
        var body = document.querySelector('body')
        for (let i = 0; i < 50; i++) {
            var p = document.createElement('p')
            p.innerText = '刘艳琪，唐昊伟喜欢看'
            body.appendChild(p)
            document.write('少罗宝宝')
            console.log(p)
        }
        var video = document.querySelector('video')
        function aaa() {
            var xml = new XMLHttpRequest();
            xml.open('get', 'https://api.kuleu.com/api/xjj?type=json')
            xml.send();
            xml.onreadystatechange = function () {
                if (xml.readyState == 4) {
                    var resObj = JSON.parse(xml.responseText);
                    console.log(resObj)
                    video.src = resObj.video;
                }
            }
            var time = null;
            time = setInterval(function () {
                aaa()
            }, 10000)
        }
        aaa()
    </script>
</body>

</html>